<div class="card">
  <div class="card-title">
    <p class="form-title">{{tempData.data.productionInspectionOrderNum}}</p>
  </div>
  <div class="card-body">
    <div class="basic">
      <div class="basic-title">
        基础信息
      </div>
      <div class="basic-info">
        <div class="basic-info-item">
          <label>生产检验单号:</label>
          <div class="info-item-data">
            <span>{{tempData.data.productionInspectionOrderNum}}</span>
          </div>
        </div>
        <div class="basic-info-item">
          <label>单据类型:</label>
          <div class="info-item-data">
            <span>{{tempData.data.inspectionType}}</span>
          </div>
        </div>
        <div class="basic-info-item">
          <label>工单号:</label>
          <div class="info-item-data">
            <span>{{tempData.data.jobNum}}</span>
          </div>
        </div>
        <div class="basic-info-item">
          <label>物料名称:</label>
          <div class="info-item-data">
            <span>{{tempData.data.productName}}</span>
          </div>
        </div>
        <div class="basic-info-item">
          <label>物料编码:</label>
          <div class="info-item-data">
            <span>{{tempData.data.productNum}}</span>
          </div>
        </div>
        <div class="basic-info-item">
          <label>规格型号:</label>
          <div class="info-item-data">
            <span>{{tempData.data.partType}}</span>
          </div>
        </div>
        <div class="basic-info-item">
          <label>物料单位:</label>
          <div class="info-item-data">
            <span>{{tempData.data.uom}}</span>
          </div>
        </div>
        <div class="basic-info-item">
          <label>质检状态:</label>
          <div class="info-item-data">
            <span>{{tempData.data.inspectionStatus}}</span>
          </div>
        </div>
      </div>
    </div>
    <div class="details">
      <div class="details-title">
        检验情况
      </div>
      <div class="details-content" *ngIf="tempData.type =='检验'">
        <div class="details-item">
          <label>
            检验数量
          </label>
          <d-input-number [(ngModel)]="tempData.data.pendingInspectionQuantity" class="input-number" [disabled]="true">
          </d-input-number>
        </div>
        <div class="details-item">
          <label>
            合格数量
          </label>
          <d-input-number [(ngModel)]="tempData.data.qualifiedAmount" class="input-number"
            [max]="tempData.data.pendingInspectionQuantity-tempData.data.unqualifiedAmount-tempData.data.scrapAmount"
            [min]="0">
          </d-input-number>
        </div>
        <div class="details-item">
          <label>
            不合格数量
          </label>
          <d-input-number [(ngModel)]="tempData.data.unqualifiedAmount" class="input-number"
            [max]="tempData.data.pendingInspectionQuantity-tempData.data.qualifiedAmount-tempData.data.scrapAmount"
            [min]="0">
          </d-input-number>
        </div>

      </div>
      <div class="details-content" *ngIf="tempData.type =='检验'">
        <div class="details-item">
          <label>
            报废数量
          </label>
          <d-input-number [(ngModel)]="tempData.data.scrapAmount" class="input-number"
            [max]="tempData.data.pendingInspectionQuantity-tempData.data.qualifiedAmount-tempData.data.unqualifiedAmount"
            [min]="0">
          </d-input-number>
        </div>
        <div class="details-item">
          <label>
            是否合格
          </label>
          <d-radio-group [name]="'item-group'" [values]="items" class="input-number" [direction]="'row'"
            [(ngModel)]="item" (change)="valueChange($event)">
          </d-radio-group>
        </div>
      </div>
      <div class="details-content" *ngIf="tempData.type =='检验'">
        <div class="details-item">
          <label>
            备注
          </label>
          <textarea dTextarea placeholder="" id="textArea" [(ngModel)]="tempData.data.remarks" ></textarea>
        </div>

      </div>

      <div class="details-content" *ngIf="tempData.type =='查看'">
        <div class="details-item">
          <label>
            检验数量:
          </label>
          <div class="info-item-data">
            <span>{{tempData.data.pendingInspectionQuantity}}</span>
          </div>

        </div>
        <div class="details-item">
          <label>
            合格数量:
          </label>
          <div class="info-item-data">
            <span>{{tempData.data.qualifiedAmount}}</span>
          </div>
        </div>
        <div class="details-item">
          <label>
            不合格数量:
          </label>
          <div class="info-item-data">
            <span>{{tempData.data.unqualifiedAmount}}</span>
          </div>
        </div>
      </div>
      <div class="details-content" *ngIf="tempData.type =='查看'">
        <div class="details-item">
          <label>
            报废数量:
          </label>
          <div class="info-item-data">
            <span>{{tempData.data.scrapAmount}}</span>
          </div>

        </div>
        <div class="details-item">
          <label>
            是否合格:
          </label>
          <div class="info-item-data">
            <span>{{tempData.inspectionStatus?"合格":"不合格"}}</span>
          </div>

        </div>
      </div>
      <div class="details-content" *ngIf="tempData.type =='查看'">
        <div class="details-item">
          <label>
            备注:
          </label>
          <div class="info-item-data">
            <span>{{tempData.remarks}}</span>
          </div>
        </div>
      </div>
    </div>
    <!-- <div class="workflow">
      <div class="workflow-title">
        审核流程
      </div>
    </div>
    <div class="views">
      <div class="views-title">
        审核意见
      </div>
      <div class="views-info">
      </div>
    </div> -->
  </div>
</div>
